<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <js file="__PUBLIC__/Js/jquery-1.8.2.min.js"/>
    <js file="__PUBLIC__/Js/ghulam.js"/>
</head>
<body >
<div class="container-fluid" >
    <div class="row">
        <if condition="($cat_name=='') AND ($obg=='')"><h3 class="sub-header">全部内容</h3>
            <elseif condition="$obg!=''"/><h3 class="sub-header">你搜搜的原内容：{$obg}</h3>
            <else /><h3 class="sub-header">{$cat_name}列表</h3>
        </if>
        <div class="col-sm-9  " style="width: 100%">
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <td colspan="7">
                            <form action="{:U(GROUP_NAME.'/Content/index',array('cat_name'=>$cat_name))}" method="post" >
                                <div class="control-group">
                                    <div class="controls">
                                        <div class="input-append">
                                                <if condition="($cat_name=='')OR($cat_name==null) ">
                                                    <else/><a href="{:U(GROUP_NAME.'/Content/addcontent',array('cat_name'=>$cat_en_name))}" class="btn btn-primary">添加{$cat_name} </a>
                                                </if>
                                            <input style="height: 33px;width: 200px;" class="span2 text" placeholder="输入会员姓名" type="text" name="search_obg"/>
                                            <input type="submit" class="btn btn-success" value="搜搜"/>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <th>内容标题</th>
                        <th>所属栏目</th>
                        <th>内容封面</th>
                        <th>发布时间</th>
                        <th>发布人</th>
                        <th>是否内部</th>
                        <!--<th>访问</th>-->
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <foreach name="con" item="v">
                        <tr>
                            <td>{$v.con_title}</td>
                            <td>{$v.name}</td>
                            <td style="width: 10%;">
                                <if condition="$v['con_pic']!=''">
                                <img width="130px" height="35px" src="__UPLOAD_PIC__{$v.con_pic}"/>
                                <else/>-------
                            </if>
                            </td>

                            <td>{$v.add_time}</td>
                            <td>{$v.adder_name}</td>
                            <td><if condition="$v['security']==1">内部<else />公开</if></td>
                            <!--<td><a href="{:U('Index/Content/show',array('id' => $v['id']))}"><span class="label label-primary">访问</span></a></td>-->
                            <td>
                                <if condition="$v['accept']">
                                    <span class="label label-primary">已审核</span>
                                        <else/>
                                    <span class="label label-danger">待审核</span>
                                    <a href="{:U(GROUP_NAME.'/Content/on_status', array('rid' => $v['id'],'category'=>$cat_en_name))}" class="btn button-primary btn-xs">审核</a>
                                </if>
                            </td>
                            <td>
                                <span class="btn-group">
                                    <a  href="{:U(GROUP_NAME.'/Content/edit', array('id' => $v['id']))}" class="btn button-royal btn-xs">编辑</a>
                                </span>
                                <span class="btn-group">
                                    <a onclick="return del();" href="{:U(GROUP_NAME.'/Content/delete', array('id' => $v['id']))}" class="btn btn-danger btn-xs">删除</a>
                                </span>
                            </td>
                        </tr>
                    </foreach>
                    </tbody>
                    <tr>
                        <td align="center" colspan="9">{$page}</td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>
<div>{$v.a} {$a.id}</div>

<link href="__PUBLIC__/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/bootstrap/css/button.css" rel="stylesheet">
<script src="__PUBLIC__/bootstrap/js/jquery-1.9.1.js"></script>
<script src="__PUBLIC__/bootstrap/js/bootstrap.js"></script>
</body>
</html>